import TabsView from '@/layouts/tabs/TabsView'
// import BlankView from '@/layouts/BlankView'
// import PageView from '@/layouts/PageView'

// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404'),
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403'),
    },
    {
      path: '/',
      name: '首页',
      component: TabsView,
      redirect: '/login',
      children: [
        {
            path: 'home',
            name: '首页',
            meta: {
              icon: 'file-ppt',
              page: {
                closable: false
              },
            },
            component: () => import('@/pages/dashboard/workplace')
        },
        {
          path: 'plugin',
          name: '插件管理',
          meta: {
            icon: 'file-ppt'
          },
          component: () => import('@/pages/plugin')
        },
        {
            path: 'plugin_detail',
            name: '插件详情',
            meta: {
                icon: 'file-ppt',
                invisible: 'true',
            },
            component: () => import('@/pages/plugin/Detail.vue'),
        },
        {
            path: 'menu',
            name: '菜单管理',
            meta: {
              icon: 'file-ppt'
            },
            component: () => import('@/pages/menu')
        }
      ]
    }
  ]
}

export default options
